/*
 *  MeshPart.h
 *  SypXIPhone
 *
 *  Created by Luv Khemani on 5/13/10.
 *  Copyright 2010 Luv Khemani. All rights reserved.
 *
 */

#pragma once
#ifndef SYPX_MESHPART
#define SYPX_MESHPART

#include "Types.h"

namespace SypX 
{
	///A MeshPart defines a subset or part of a mesh which can be drawn in 1 drawcall. 
	///A Mesh is often split into multiple draw calls due to having several parts with differing
	///materials/textures/shaders/etc..
	struct MeshPart
	{
		///Default constructor
		MeshPart():smallest(0),largest(0),count(0),offset(0){};
		UInt smallest;	//smallest index used for this meshpart
		UInt largest;	//largest index used for this meshpart
		UInt count;		//Number of primitives(vertices) to draw
		UInt offset;	//Offset into index buffer to begin drawing from
	};
	
}


#endif